let a = 10;
const b = () => {
  console.log('箭头函数');
};

let arr = [1, 2, 3];

let [x, y, z] = arr;

console.log(x);
console.log(y);
console.log(z);

//toString : Object
let {length,forEach,push,map,toString} = arr;
// console.log(arr.toString());

class Person {
  constructor(name = '小王', age = 20) {
    this.name = name;
  }

  say() {
    console.log(this.name)
  }

}

new Person().say();

let http = require('http');
console.log(http);

// let event= require('event');
// console.log(event);
